<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="author" content="李愧愧">
    <title></title>
    <style>
        .box {
            position: relative;
            width: 276px;
            height: 368px;
            background-image: url(./img/王俊凯.jpg);
            background-size: 100%;
            margin: 100px auto;
            
            overflow: hidden;
        }

        .outer {
            width: 276px;
            height: 368px;
           
            position: absolute;
            top: 0;
            left: 0;
        }

        .outer .span1 {
            float: right;
            text-align: center;
            line-height: 34px;
            display: block;
            background-color: blue;
            opacity: 1;
            width: 70px;
            height: 34px;
            color: #979797;
            border-radius: 10px;
            position: absolute;
            top: -40px;
            left: 200px;
        }

        .outer .span2 {
            color: white;
            position: absolute;
            bottom: -50px;
            left: 60px;
            text-align: center;
            line-height: 42px;
            display: block;
            width: 160px;
            height: 42px;
            background: linear-gradient(to right, #32e696, #00BE6E);
            border-radius: 10px;
        }

        .clearfix::after {
            content: "";
            display: block;
            clear: both;
        }

        .box:hover .outer {
            display: block; 
            background-color: rgba(0, 0, 0, 0.5);
        }

        .box:hover .span1 {
            top: 10px;
            transition: all 0.5s linear;
        }

        .box:hover .span2 {
            bottom: 30px;
            transition: all 0.5s linear;

        }
    </style>
</head>

<body>
    <div class="box">
        <div class="outer clearfix">
            <span class="span1">
                收藏
            </span>
            <span class="span2">
                免费下载
            </span>
        </div>
    </div>

    <script>
        
    </script>
</body>

</html>